package com.sc.javaee.service.impl;

import com.sc.javaee.mapper.HomeRecommendationsMapper;
import com.sc.javaee.mapper.ProductsMapper;
import com.sc.javaee.pojo.Products;
import com.sc.javaee.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    ProductsMapper mapper;
    @Override
    public Products detail(Integer id) {
        return mapper.selectByPrimaryKey(id);
    }
}
